<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 400px;
        height: 400px;
        background-color: royalblue;
        /* overflow-x, overflow-y 实验工具 建议使用overflow*/
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    </style>
  </head>
  <body>
    <div>
      Lorem ipsum dolor sit amet consectetur adipisicing elit. Reprehenderit,
      facere hic architecto libero perspiciatis maiores neque sunt placeat odio
      nostrum minus expedita. Aliquam consequuntur veniam a in libero maxime
      aperiam.
    </div>
  </body>
</html>
